<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action = "/orderingmeal" method="post">
    <label>订餐人</label>
    <label>
        <input type="text" name="orederer" />
    </label>
    <label>餐品</label>
    <label>
        <input type="text" name="meals" />
    </label>
    <input type="submit" value="查询"/>
</form>
<table>
    <thead>
    <tr>
        <th>ID</th>
        <th>订餐人</th>
        <th>价格</th>
        <th>状态</th>
        <th>餐品</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="orderingmeal:${orderingmeals}">
        <td th:text="${orderingmeal.Id}"></td>
        <td th:text="${orderingmeal.orderer}"></td>
        <td th:text="${orderingmeal.price}"></td>
        <td th:text="${orderingmeal.status}"></td>
        <td th:text="${orderingmeal.meals}"></td>
        <td><a th:href="@{/orderingmeal/update/{id}(id=${orderingmeal.Id})}">更改</a></td>
        <td><a th:href="@{/orderingmeal/delete/{id}(id=${orderingmeal.Id})}">删除</a></td>
    </tr>
    </tbody>
    <div><a href="/orderingmeal/create">新添订单</a></div>
</table>
</body>
</html>